package com.yanggu.mockito_junit5.service;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ExampleService {

    public int recordLog(int code) {
        if (code == 1) {
            log.info("执行分支1");
        }
        if (code == 2) {
            log.info("执行分支2");
        }
        log.info("执行默认分支");
        return code;
    }

}